/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.qdu.servlet;

import com.qdu.service.NoteService;
import com.qdu.service.impl.NoteServiceImpl;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


@WebServlet("/jjj")
public class DeleteNoteServlet extends HttpServlet{
    NoteService ss=new NoteServiceImpl();
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
     int Nno=Integer.parseInt(req.getParameter("Nno"));
     
     String driver_class = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
        String url = "jdbc:sqlserver://localhost:1433;databaseName=PA";
        String username = "sa";
        String password = "sa";
     
     ss.delete(Nno);
    }
}
